//
//  FirmwareViewModel.swift
//  DaRings
//
//  Created by 易先生 on 2022/10/31.
//

import UIKit
import RxSwift
import RxCocoa

public enum FirmwareAction{
    case information
    case reset
    case upgrade
    
    public var title:String{
        switch self {
        case .information: return "firmware_information_title".language
        case .reset: return "other_settings_factory_reset".language
        case .upgrade: return "firmware_upgrade_title".language
        }
    }
}

open class FirmwareViewModel: NSObject {

    public let items = BehaviorRelay<[FirmwareAction]>(value: [])

    
    public override init() {
        super.init()
        let firmwareItems: [FirmwareAction] = [.information,.reset,.upgrade]
        items.accept(firmwareItems)

    }
    
}
